<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>二维码生成 - 修改title</title>
</head>

<body>
    <script src="https://cdn.staticfile.org/qrcodejs/1.0.0/qrcode.js"></script>
    将在下方生成二维码，查看此页的title，是不是改变啦
    <div id="qrcode"></div>
    <script type="text/javascript">
        let qrcode = new QRCode(document.getElementById("qrcode"), "http://jindo.dev.naver.com/collie");  // 设置要生成二维码的链接
        qrcode._el.title = "简单快乐的生活";
    </script>
</body>

</html>